<script lang="ts" setup>
import { useRouter } from 'vue-router';
const router = useRouter()

// 导航栏返回事件
function onClickLeft() {
    router.back()
}
</script>

<template>
    <div>
        <!-- 导航栏 -->
        <van-nav-bar title="" left-text="返回" left-arrow @click-left="onClickLeft" />

        <router-view></router-view>
    </div>
</template>

<style lang="scss" scoped>
.van-nav-bar {
  background-color: #f7fdff;
}
</style>